﻿
#include "src/fend/uilogin/logindialog.h"
#include "src/fend/uimain/uimain.h"
#include "src/middle/manglobal.h"
#include "tests/testcos.h"
#include <QApplication>
#include <QDebug>
#define RUN_TEST 1
#if RUN_TEST == 1

void runTest(int argc, char* argv[])
{

    TestCos cos;
    QTest::qExec(&cos);
}
#endif

int main(int argc, char* argv[])
{
    QApplication a(argc, argv);
#if RUN_TEST == 1
    runTest(argc, argv);
#else
    MG->init(argc, argv);

    UiMain w;
    w.showLoginDialog();

#endif


    return a.exec();
}
